package LeetCode.stackvsqueue;

import java.util.ArrayDeque;

public class TestQueue {
    public static void main(String[] args) {
        ArrayDeque<Integer> testqueue = new ArrayDeque<Integer>();
        testqueue.offer(0);
        testqueue.offer(1);
        testqueue.offer(2);
        testqueue.offer(3);
        int temp;
        while(testqueue.size()> 0){
            temp = testqueue.pop();
            System.out.println(temp);
        }
    }
}
